﻿using UnityEngine;
using System.Collections;

public class TerrainScoop : MonoBehaviour {

	public GameObject startTransform;

	void OnTriggerEnter(Collider other)
	{
		if (other.gameObject.GetComponent<TerrainMovement>() != null)
		{
				other.gameObject.transform.Translate(startTransform.transform.position);
				other.gameObject.GetComponent<TerrainMovement>().spawned = true;
		}
		
	}

	
}
